//
//  CMSChartsContentModel.h
//  CMSCharts
//
//  Created by symbio on 2023/2/17.
//

#import <Foundation/Foundation.h>
#import <Charts/Charts-Swift.h>
#import <UIKit/UIKit.h>
#import "CMSChartsConfigModel.h"
NS_ASSUME_NONNULL_BEGIN

///分时数据点数（一天的总交易时间，单位min）
typedef NS_ENUM(NSInteger, CMSChartAmountCount) {
    CMSCountCN = 240,           //9:30~11:30,13:00~15:00
    CMSCountHK = 330,           //9:30~12:00,13:00~16:00
    CMSCountEU = 390,
    CMSCountSummerUS = 390,     //10:30~17:00
    CMSCountWinterUS = 390      //9:30~16:00
};


@interface CMSChartsXPositionModel : NSObject

@property (nonatomic, strong) NSString *name;
@property (nonatomic, assign) BOOL isShowLine;
@property (nonatomic, assign) BOOL isShowLabel;
@property (nonatomic, assign) double xPosition;
@property (nonatomic, assign) NSInteger labelAlignment;

@end

@interface CMSChartsContentModel : NSObject

@property (nonatomic, strong) CombinedChartData *chartData;
@property (nonatomic, strong) NSArray<NSString *> *tagTitles;
@property (nonatomic, strong) NSAttributedString *attributedString;
/// 当前图类型
@property (nonatomic, assign) CMSChartsType chartType;
/// 是否副图
@property (nonatomic, assign) BOOL isAssistant;

@property (nonatomic, strong) CMSChartsConfigModel *configModel;

@property (nonatomic, strong) CMSChartsXPositionModel *xPositionModel;


/// 根据图表类型返回K线总点数
- (double)backAmoutCountOfChart:(CMSChartsType)chartType;

/// 返回分时图网格竖线(LimitLine)所需要的信息
- (NSArray<CMSChartsXPositionModel *> *)backXPositionInfoForType:(CMSChartsType)chartType;

@end

NS_ASSUME_NONNULL_END
